package com.honghu.villagepost.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class ShopApplyDetail implements Parcelable {

    /**
     * 身份证号
     */
    public String idCardNo;

    /**
     * 名字
     */
    public String name;

    /**
     * 手机号码
     */
    public String mobile;

    /**
     * 身份证正面
     */
    public String idCardPicFront;

    /**
     * 身份证反面
     */
    public String idCardPicBack;

    /**
     * 审核状态
     * 状态，1申请，3审核通过，6取消申请
     */
    public int state;

    protected ShopApplyDetail(Parcel in) {
        idCardNo = in.readString();
        name = in.readString();
        mobile = in.readString();
        idCardPicFront = in.readString();
        idCardPicBack = in.readString();
        state = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(idCardNo);
        dest.writeString(name);
        dest.writeString(mobile);
        dest.writeString(idCardPicFront);
        dest.writeString(idCardPicBack);
        dest.writeInt(state);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ShopApplyDetail> CREATOR = new Creator<ShopApplyDetail>() {
        @Override
        public ShopApplyDetail createFromParcel(Parcel in) {
            return new ShopApplyDetail(in);
        }

        @Override
        public ShopApplyDetail[] newArray(int size) {
            return new ShopApplyDetail[size];
        }
    };
}
